package com.atguigu07._abstract;

/**
 * ClassName: AbstractTest
 * Package: com.atguigu07._abstract
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/9/3 20:50
 * @Version 1.0
 */
public class AbstractTest {
    public static void main(String[] args) {
//        Person p1 = new person();
        //        p1.eat();

        Person s1 = new Student();//多态
        s1.eat();

//        Worker w1 = new Worker();
    }
}
